﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utils
{
    public class FilterSql
    {
        public static string FilterValue(object value) {
            // filter using regular expression
            return (value + "").Replace("'", "''");
        }

        public static string FilterField(string fieldName) {
            // filter using regular expression
            return fieldName.Replace("'", "").Replace(" ", "");
        }
    }
}
